home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
Rings.swf
/
scripts
/
__Packages
/
Ring.as
< prev
next >
Wrap
Text File
|
2011-01-13
|
16KB
|
568 lines
var §\x01§ = 434;
while(true)
{
if(eval("\x01") == 434)
{
set("\x01",eval("\x01") - 193);
§§push(true);
continue;
}
if(eval("\x01") == 650)
{
set("\x01",eval("\x01") + 77);
§§push(§§pop() >>> §§pop());
break;
}
if(eval("\x01") == 377)
{
set("\x01",eval("\x01") - 331);
if(§§pop())
{
set("\x01",eval("\x01") + 497);
}
continue;
}
if(eval("\x01") == 241)
{
set("\x01",eval("\x01") + 453);
if(§§pop())
{
set("\x01",eval("\x01") + 16);
}
continue;
}
if(eval("\x01") == 367)
{
set("\x01",eval("\x01") + 454);
§§push(true);
continue;
}
if(eval("\x01") == 714)
{
set("\x01",eval("\x01") - 103);
if(§§pop())
{
set("\x01",eval("\x01") + 292);
}
continue;
}
if(eval("\x01") == 694)
{
set("\x01",eval("\x01") + 16);
break;
}
if(eval("\x01") == 125)
{
set("\x01",eval("\x01") + 573);
if(!_global.Ring)
{
_global.Ring extends MovieClip;
var _loc2_ = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.prototype;
_loc2_.PickUp = function()
{
if(this.canPickUp and this.isSelected)
{
if(this.game.CheckValidPickup(this,this.cell))
{
this.pickedUp = true;
this.cell.hasType[this.type - 1] = false;
this.game.currentRing = this;
this.game.mainTimeline.sounds.ringpickup.play();
§§push(this.startDrag(false));
}
else
{
trace("can\'t pick this one up: " + this);
}
}
};
_loc2_.Select = function()
{
if(this.cell.num == 7)
{
this.game.ClickCentreCell();
return undefined;
}
if(this.game.currentRing.type == undefined)
{
this.isSelected = true;
this.PickUp();
}
else
{
trace("current ring: " + this.game.currentRing);
}
};
addr315:
_loc2_.Drop = function()
{
if(this.done)
{
trace("TRIED TO DROP DONE RING: " + this.type);
return undefined;
}
var _loc3_ = this.game.GetCellAtPos(this._x,this._y);
var _loc4_ = false;
if(_loc3_ != null)
{
if(this.game.CheckValidPut(this,_loc3_) == true)
{
this.cellNum = _loc3_.num;
this.cell = _loc3_;
this.isSelected = false;
_loc4_ = true;
}
}
if(_loc4_)
{
this.MoveToCellPos();
var _loc2_ = 1;
while(_loc2_ < 7)
{
_loc2_ = _loc2_ + 1;
}
this.pickedUp = false;
this.game.currentRing = null;
§§push(this.stopDrag());
}
else
{
this.game.mainTimeline.sounds.invalidplace.play();
}
};
_loc2_.MoveToCellPos = function()
{
this.game.mainTimeline.sounds.ringplace.play();
trace("add type: " + this.type + " to cell: " + this.cell.num);
this.cell.hasType[this.type - 1] = true;
this._x = this.cell._x;
this._y = this.cell._y;
var _loc3_ = this.cell.CheckCompleteRing();
if(_loc3_ > 0)
{
var _loc2_ = undefined;
switch(_loc3_)
{
case 1:
_loc2_ = 1000;
break;
case 2:
_loc2_ = 500;
break;
case 3:
_loc2_ = 250;
}
this.scoreValue_mc.scoreValue_txt.text = _loc2_.toString();
if(this.game.multiplier)
{
this.scoreValueBon_mc.scoreValue_txt.text = "+" + (_loc2_ * this.game.multiplier).toString();
}
this.game.CompleteRing(this.cell,_loc3_);
}
};
_loc2_.MovetoDest = function()
{
this.cell = this.game.GetCellAtNum(this.dest);
if(this.game.CheckValidPut(this,this.cell) == true)
{
trace("slide " + this.type + " to cell: " + this.cell.num);
this.canPickUp = true;
this.MoveToCellPos();
}
else
{
trace("cell highest type : " + this.cell.GetHighestRingType());
this.game.EndRound(false);
}
};
_loc2_.isSelected = false;
_loc2_.pickedUp = false;
§§push(ASSetPropFlags(_global.Ring.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") == 680)
{
set("\x01",eval("\x01") - 303);
§§push(true);
continue;
}
if(eval("\x01") == 186)
{
set("\x01",eval("\x01") + 722);
if(§§pop())
{
set("\x01",eval("\x01") - 541);
}
continue;
}
if(eval("\x01") == 405)
{
set("\x01",eval("\x01") + 533);
§§push(true);
continue;
}
if(eval("\x01") == 938)
{
set("\x01",eval("\x01") - 527);
if(§§pop())
{
set("\x01",eval("\x01") - 291);
}
continue;
}
if(eval("\x01") == 821)
{
set("\x01",eval("\x01") - 171);
if(§§pop())
{
set("\x01",eval("\x01") + 77);
}
continue;
}
if(eval("\x01") == 611)
{
set("\x01",eval("\x01") + 292);
break;
}
if(eval("\x01") == 798)
{
set("\x01",eval("\x01") - 673);
nextFrame();
break;
}
if(eval("\x01") == 543)
{
set("\x01",eval("\x01") - 267);
§§push(true);
continue;
}
if(eval("\x01") == 698)
{
set("\x01",eval("\x01") - 698);
break;
}
if(eval("\x01") == 908)
{
set("\x01",eval("\x01") - 541);
break;
}
if(eval("\x01") == 903)
{
set("\x01",eval("\x01") - 310);
§§push(true);
continue;
}
if(eval("\x01") == 276)
{
set("\x01",eval("\x01") + 522);
if(§§pop())
{
set("\x01",eval("\x01") - 673);
}
continue;
}
if(eval("\x01") == 207)
{
set("\x01",eval("\x01") + 430);
§§push(true);
continue;
}
if(eval("\x01") == 120)
{
set("\x01",eval("\x01") + 1);
§§push(true);
continue;
}
if(eval("\x01") == 710)
{
set("\x01",eval("\x01") - 524);
§§push(true);
continue;
}
if(eval("\x01") == 727)
{
set("\x01",eval("\x01") - 13);
§§push(true);
continue;
}
if(eval("\x01") == 593)
{
set("\x01",eval("\x01") - 86);
if(§§pop())
{
set("\x01",eval("\x01") - 300);
}
continue;
}
if(eval("\x01") == 507)
{
set("\x01",eval("\x01") - 300);
break;
}
if(eval("\x01") == 637)
{
set("\x01",eval("\x01") - 611);
if(§§pop())
{
set("\x01",eval("\x01") + 379);
}
continue;
}
if(eval("\x01") != 26)
{
if(eval("\x01") == 411)
{
set("\x01",eval("\x01") - 291);
break;
}
if(eval("\x01") != 121)
{
if(eval("\x01") == 356)
{
set("\x01",eval("\x01") + 324);
break;
}
if(eval("\x01") == 46)
{
set("\x01",eval("\x01") + 497);
nextFrame();
toggleHighQuality();
§§pop()[§§pop()] = §§pop()[§§pop()] - _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.mx;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.canPickUp = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.canPickUp + 1;
if(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select > _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.prototype)
{
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.prototype;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.currentRing = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.MovieClip;
}
if(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select < 0)
{
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select = 0;
}
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.pickedUp = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.pickedUp + _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select * _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.create;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.MovieClip = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.MovieClip + hasType.type(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select);
if(hasType.type(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.pickedUp - _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.onPress) < _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.Select * 2)
{
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.pickedUp = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.onPress;
}
§§pop()[§§pop()] = §§pop();
ringpickup(_global.Ring.cell,null,1);
break;
}
}
set("\x01",eval("\x01") + 235);
if(§§pop())
{
set("\x01",eval("\x01") + 324);
}
continue;
break;
}
set("\x01",eval("\x01") + 379);
var _loc3_ = _global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.game.GetCellAtPos(§§pop()[§§pop()],§§pop());
var _loc4_ = false;
if(_loc3_ != null)
{
if(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.game.CheckValidPut(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
},_loc3_) == true)
{
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.cellNum = _loc3_.num;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.cell = _loc3_;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.isSelected = false;
_loc4_ = true;
}
}
if(_loc4_)
{
(_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}).MoveToCellPos();
_loc2_ = 1;
while(_loc2_ < 7)
{
_loc2_ = _loc2_ + 1;
}
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.pickedUp = false;
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.game.currentRing = null;
§§push((_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}).stopDrag());
}
else
{
_global.Ring = function()
{
super();
this.onPress = mx.utils.Delegate.create(this,this.Select);
this.done = false;
}.game.mainTimeline.sounds.invalidplace.play();
}
§§goto(addr315);
}